$(function () {
    // 搜索
    $('.gamelist .search .button').click(function () {
        var gamename = $('.gamelist .search .text').val();
        $('.gamelist .search form').attr('action', 'gamelist?gamename=' + gamename);
        $('.gamelist .search form').submit();
    });
});